package com.xiaoma.config;

import com.xiaoma.processor.MyBeanDefinitionRegistryPostProcessor;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @description  
 * @author wangtianxiang
 * @date: 2021/11/24 16:57
 */
@Configuration
public class MyConfiguration {

    @Bean
    @ConditionalOnMissingBean
    public MyBeanDefinitionRegistryPostProcessor myBeanDefinitionRegistryPostProcessor(){
        return new MyBeanDefinitionRegistryPostProcessor("小马哥");
    }


}
